//
//  SignInCountCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/12/20.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "SignInCountCell.h"

@interface SignInCountCell()
@property (weak, nonatomic) IBOutlet UIView *conView;
@property (weak, nonatomic) IBOutlet UILabel *registrationNameLab;
@property (weak, nonatomic) IBOutlet UILabel *registrationPhoneLab;
@property (weak, nonatomic) IBOutlet UILabel *backMoneyLab;
@property (weak, nonatomic) IBOutlet UILabel *sumTotalLab;

@end

@implementation SignInCountCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}
- (void)setModel:(RegistrationListModel *)model
{
    _model = model;
    self.registrationNameLab.text = model.registrationName;
    self.registrationPhoneLab.text = model.registrationPhone;
    if (model.sumTotal) {
        self.sumTotalLab.text = model.sumTotal;
    }else {
        self.sumTotalLab.text = @"未缴费";
    }
    if (model.backMoney) {
        self.backMoneyLab.text = model.backMoney;
    }else {
        self.backMoneyLab.text = @"0";
    }
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.conView.layer.shadowOffset = CGSizeMake(0, 1);
    self.conView.layer.shadowColor = RGBColorOne(160).CGColor;
    self.conView.layer.shadowRadius = 5;
    self.conView.layer.shadowOpacity = 1.0f;
    UIBezierPath *path = [UIBezierPath bezierPath];
    [path moveToPoint:CGPointMake(0, 80)];
    [path addLineToPoint:CGPointMake(ScreenW-10, 80)];
    [path addLineToPoint:CGPointMake(ScreenW-10, 00)];
    self.conView.layer.shadowPath = path.CGPath;
}

@end
